package com.wicket.okrpbff.biz.service.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.wicket.okrpbff.common.annotations.TreeType;
import java.util.Objects;

/**
 * @desc BffCheckEvaObjTargetCycleOsetDto
 * @使用场景
 */
@Data
public class BffCheckEvaObjTargetCycleOsetDto implements Serializable {

  /**
   * 被评对象目标周期ID
   */
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 关联目标内容ID
   */
  @TreeType("fid")
  @ApiModelProperty("关联目标内容ID")
  private String targetCycleContentId;

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 是否父周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否父周期")
  private String isParentCycle;

  /**
   * 是否子周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否子周期")
  private String isSubCycle;

  /**
   * 是否中期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否中期")
  private String isMetaphase;

  /**
   * 起始值
   */
  @ApiModelProperty("起始值")
  private Double targetStartValue;

  /**
   * 目标值
   */
  @ApiModelProperty("目标值")
  private Double targetValue;

  /**
   * 诊断值
   */
  @ApiModelProperty("诊断值")
  private Double targetDiagnosticValue;

  /**
   * 冗余单位
   */
  @ApiModelProperty("冗余单位")
  private String unit;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffCheckEvaObjTargetCycleOsetDto that = (BffCheckEvaObjTargetCycleOsetDto) o;
      return  evaObjTargetCycleId == that.evaObjTargetCycleId&&targetCycleContentId == that.targetCycleContentId&&cycleId == that.cycleId&&isParentCycle == that.isParentCycle&&isSubCycle == that.isSubCycle&&isMetaphase == that.isMetaphase&&targetStartValue == that.targetStartValue&&targetValue == that.targetValue&&targetDiagnosticValue == that.targetDiagnosticValue&&unit == that.unit;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaObjTargetCycleId,targetCycleContentId,cycleId,isParentCycle,isSubCycle,isMetaphase,targetStartValue,targetValue,targetDiagnosticValue,unit);
    }

}
